package ua.dou;

import android.support.v4.app.FragmentTransaction;
import android.support.v4.app.FragmentManager;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import ua.dou.fragments.RssListFragment;

public class DouActivity extends FragmentActivity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        FragmentManager fragmentManager = getSupportFragmentManager();
        FragmentTransaction  transaction = fragmentManager.beginTransaction();
        RssListFragment fragment  = new RssListFragment();
        transaction.add(fragment, "rss_list");
        transaction.commit();
    }
}
